import { Radio } from 'antd';
import React from 'react';
import type { RadioProps } from 'antd';
import styles from './style.module.less';

interface MyRadioInterface extends React.FC<RadioProps> {
  Group: typeof Radio.Group;
  Button: typeof Radio.Button;
}

const MyRadio: MyRadioInterface = (props) => {
  const { className = '', ...rest } = props;
  return (
    <div className={styles.radioWrapper}>
      <Radio className={className} {...rest} />
    </div>
  );
};

MyRadio.Group = Radio.Group;
MyRadio.Button = Radio.Button;

export default MyRadio; 